home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Info / Sun_NeXT.audio < prev    next >
Encoding:
Text File  |  1991-11-04  |  2.2 KB  |  68 lines  |  [TEXT/UNIX]

  1. Article 157 of comp.doc:
  2. Path: ux1.cso.uiuc.edu!uwm.edu!cs.utexas.edu!swrinde!ucsd!brian
  3. From: brian@ucsd.Edu (Brian Kantor)
  4. Newsgroups: comp.doc
  5. Subject: Sun_&_Next_Audio_File_Format
  6. Message-ID: <44832@ucsd.Edu>
  7. Date: 28 Oct 91 12:00:15 GMT
  8. Sender: root@ucsd.Edu
  9. Distribution: na
  10. Lines: 53
  11. Approved: comp-doc@ucsd.edu
  12.  
  13. From ucsd!ucselx!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!wupost!usc!elroy.jpl.nasa.gov!sdd.hp.com!decwrl!parc!janssen Fri Oct 25 09:58:20 PDT 1991
  14.  
  15. The following is supposedly the sound format used by Sun and Next
  16. machines:
  17.  
  18. [ From: mrose@dbc.mtview.ca.us (Marshall Rose) ]
  19.  
  20. Audio data is encoded in three parts: a header, containing fields that
  21. describe the audio encoding format; a variable-length information field,
  22. in which, for instance, ASCII annotation may be stored; and, the actual
  23. encoded audio.  The header and data fields are written using big-endian
  24. ordering.
  25.  
  26. The header part consists of six 32-bit quantities, in this order:
  27.  
  28. longword    field        description
  29. --------    -----        -----------
  30.     0        magic number    the value 0x2e736e64 (ASCII ".snd")
  31.  
  32.     1        data offset    the offset, in octets, to the data part.
  33.                 The minimum valid number is 24 (decimal).
  34.  
  35.     2        data size    the size in octets, of the data part.
  36.                 If unknown, the value 0xffffffff should
  37.                 be used.
  38.  
  39.     3        encoding    the data encoding format:
  40.  
  41.                     value    format
  42.                       1        8-bit ISDN u-law
  43.                       2        8-bit linear PCM [REF-PCM]
  44.                       3        16-bit linear PCM
  45.                       4        24-bit linear PCM
  46.                       5        32-bit linear PCM
  47.                       6        32-bit IEEE floating point
  48.                       7        64-bit IEEE floating point
  49.                      23        8-bit ISDN u-law compressed
  50.                         using the CCITT G.721 ADPCM
  51.                         voice data encoding scheme.
  52.  
  53.     4        sample rate    the number of samples/second (e.g., 8000)
  54.  
  55.     5        channels    the number of interleaved channels (e.g., 1)
  56.  
  57.  
  58. The information part, consists of 0 or more octets, and starts 24 octets
  59. after the beginning of the header part. The length of the information
  60. part is calculated by subtracting 24 (decimal) from the data offset
  61. field in the header part.
  62. --
  63.  Bill Janssen      janssen@parc.xerox.com      (415) 812-4763
  64.  Xerox Palo Alto Research Center      FAX: (415) 812-4777
  65.  3333 Coyote Hill Road, Palo Alto, California   94304
  66.  
  67.  
  68.